"""
@File    ：el_audit.py
@Author  ：ixiaodu
@Date    ：2024/5/14
@Desc    ：
"""
from selenium.webdriver.common.by import By


# 审核界面元素配置信息
check_in_audit = By.XPATH, '//*[@id="tab-check-in-v2"]/div/span[1]'
room_change_audit = By.XPATH, "//div[@id='tab-change-house']/div/span"
checkout_audit = By.XPATH, "//div[@id='tab-out-house']/div/span"

process_button_checkin = By.XPATH, '//*[@id="pane-check-in-v2"]/div/div[3]/div[2]/div[1]/div[4]/div[2]/table/tbody/tr[1]/td[21]/div/button'  # tr[1]表示当前第1个按钮
process_button_change = By.XPATH, '//*[@id="pane-change-house"]/div/div[3]/div[2]/div[1]/div[4]/div[2]/table/tbody/tr[1]/td[15]/div/button'
process_button_checkout = By.XPATH, '//*[@id="pane-out-house"]/div/div[3]/div[2]/div[1]/div[4]/div[2]/table/tbody/tr[1]/td[15]/div/button'

pass_button = By.XPATH, "//td/div/label/span"
reject_button = By.XPATH, "//td/div/label[2]/span"
assign_room_button = By.XPATH, "//td/button"
descr = By.XPATH, "//textarea"

room_number_search = By.XPATH, "//span[2]/div/input"
select_room = By.XPATH, "//span/div/div/div/label"
select_bed = By.CSS_SELECTOR, ".el-radio-group > .el-radio:nth-child(1) > .el-radio__label"
submit_room = By.XPATH, "/html/body/div[3]/div/div[3]/div/button[2]/span"

submit_audit = By.XPATH, "//button[contains(.,'提交')]"
submit_msg = By.CSS_SELECTOR, '.el-message__content'
